/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddSaleLine.java
 *
 * Created on Feb 16, 2009, 10:59:26 AM
 */

package magis;

/**
 *
 * @author Brady
 */
public class AddSaleLine extends javax.swing.JFrame {

    /** Creates new form AddSaleLine */
    public AddSaleLine() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        saleCarGroup = new javax.swing.JPanel();
        makeDisplay_lbl = new javax.swing.JLabel();
        mileage_lbl = new javax.swing.JLabel();
        listPriceDisplay_lbl = new javax.swing.JLabel();
        mileageDisplay_lbl = new javax.swing.JLabel();
        colorDisplay_lbl = new javax.swing.JLabel();
        model_lbl = new javax.swing.JLabel();
        make_lbl = new javax.swing.JLabel();
        vin_txt = new javax.swing.JTextField();
        color_lbl = new javax.swing.JLabel();
        year_lbl = new javax.swing.JLabel();
        modelDisplay_lbl = new javax.swing.JLabel();
        yearDisplay_lbl = new javax.swing.JLabel();
        listPrice_lbl = new javax.swing.JLabel();
        salePrice_txt = new javax.swing.JTextField();
        downPayment_txt = new javax.swing.JTextField();
        addCar_btn3 = new javax.swing.JButton();
        listPrice_lbl1 = new javax.swing.JLabel();
        listPrice_lbl2 = new javax.swing.JLabel();
        bottomMenu_pnl = new javax.swing.JPanel();
        addCar_btn2 = new javax.swing.JButton();
        addCar_btn1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        saleCarGroup.setBorder(javax.swing.BorderFactory.createTitledBorder("Sale Car"));

        makeDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9));
        makeDisplay_lbl.setText("Dodge");

        mileage_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        mileage_lbl.setText("Mileage:");

        listPriceDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9));
        listPriceDisplay_lbl.setText("$14,500");

        mileageDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        mileageDisplay_lbl.setText("43,000");

        colorDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        colorDisplay_lbl.setText("Red");

        model_lbl.setFont(new java.awt.Font("Tahoma", 0, 9));
        model_lbl.setText("Model:");

        make_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        make_lbl.setText("Make:");

        vin_txt.setFont(vin_txt.getFont().deriveFont(vin_txt.getFont().getSize()-1f));
        vin_txt.setText("Enter VIN");

        color_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        color_lbl.setText("Color:");

        year_lbl.setFont(new java.awt.Font("Tahoma", 0, 9));
        year_lbl.setText("Year:");

        modelDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        modelDisplay_lbl.setText("Charger");

        yearDisplay_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        yearDisplay_lbl.setText("2007");

        listPrice_lbl.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        listPrice_lbl.setText("List Price:");

        salePrice_txt.setFont(salePrice_txt.getFont().deriveFont(salePrice_txt.getFont().getSize()-2f));
        salePrice_txt.setText("Sale Price");

        downPayment_txt.setFont(downPayment_txt.getFont().deriveFont(downPayment_txt.getFont().getSize()-2f));
        downPayment_txt.setText("Down Payment");

        addCar_btn3.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        addCar_btn3.setText("Find Car");

        listPrice_lbl1.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        listPrice_lbl1.setText("Sale Price:");

        listPrice_lbl2.setFont(new java.awt.Font("Tahoma", 0, 9)); // NOI18N
        listPrice_lbl2.setText("Down Payment:");

        javax.swing.GroupLayout saleCarGroupLayout = new javax.swing.GroupLayout(saleCarGroup);
        saleCarGroup.setLayout(saleCarGroupLayout);
        saleCarGroupLayout.setHorizontalGroup(
            saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(saleCarGroupLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addComponent(vin_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(addCar_btn3))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(listPrice_lbl1)
                            .addComponent(listPrice_lbl)
                            .addComponent(year_lbl))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(yearDisplay_lbl)
                            .addComponent(listPriceDisplay_lbl)
                            .addComponent(salePrice_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                                        .addComponent(make_lbl)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(makeDisplay_lbl))
                                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                                        .addComponent(model_lbl)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(modelDisplay_lbl)))
                                .addGap(21, 21, 21)
                                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                                        .addComponent(color_lbl)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(colorDisplay_lbl, javax.swing.GroupLayout.DEFAULT_SIZE, 52, Short.MAX_VALUE))
                                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                                        .addComponent(mileage_lbl)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(mileageDisplay_lbl))))
                            .addGroup(saleCarGroupLayout.createSequentialGroup()
                                .addComponent(listPrice_lbl2)
                                .addGap(18, 18, 18)
                                .addComponent(downPayment_txt, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        saleCarGroupLayout.setVerticalGroup(
            saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(saleCarGroupLayout.createSequentialGroup()
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(vin_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(addCar_btn3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(year_lbl)
                        .addComponent(yearDisplay_lbl))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addGap(17, 17, 17)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(listPriceDisplay_lbl)
                            .addComponent(listPrice_lbl)))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(make_lbl)
                            .addComponent(makeDisplay_lbl))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(model_lbl)
                            .addComponent(modelDisplay_lbl)))
                    .addGroup(saleCarGroupLayout.createSequentialGroup()
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(color_lbl)
                            .addComponent(colorDisplay_lbl))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(mileage_lbl)
                            .addComponent(mileageDisplay_lbl))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(saleCarGroupLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(listPrice_lbl1)
                    .addComponent(salePrice_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(listPrice_lbl2)
                    .addComponent(downPayment_txt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        getContentPane().add(saleCarGroup, java.awt.BorderLayout.CENTER);

        addCar_btn2.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        addCar_btn2.setText("Cancel");
        bottomMenu_pnl.add(addCar_btn2);

        addCar_btn1.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
        addCar_btn1.setText("Save Car");
        bottomMenu_pnl.add(addCar_btn1);

        getContentPane().add(bottomMenu_pnl, java.awt.BorderLayout.SOUTH);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new AddSaleLine().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton addCar_btn1;
    private javax.swing.JButton addCar_btn2;
    private javax.swing.JButton addCar_btn3;
    private javax.swing.JPanel bottomMenu_pnl;
    private javax.swing.JLabel colorDisplay_lbl;
    private javax.swing.JLabel color_lbl;
    private javax.swing.JTextField downPayment_txt;
    private javax.swing.JLabel listPriceDisplay_lbl;
    private javax.swing.JLabel listPrice_lbl;
    private javax.swing.JLabel listPrice_lbl1;
    private javax.swing.JLabel listPrice_lbl2;
    private javax.swing.JLabel makeDisplay_lbl;
    private javax.swing.JLabel make_lbl;
    private javax.swing.JLabel mileageDisplay_lbl;
    private javax.swing.JLabel mileage_lbl;
    private javax.swing.JLabel modelDisplay_lbl;
    private javax.swing.JLabel model_lbl;
    private javax.swing.JPanel saleCarGroup;
    private javax.swing.JTextField salePrice_txt;
    private javax.swing.JTextField vin_txt;
    private javax.swing.JLabel yearDisplay_lbl;
    private javax.swing.JLabel year_lbl;
    // End of variables declaration//GEN-END:variables

}
